home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6372 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: strauss.udel.edu!not-for-mail
  2. From: jcorig@strauss.udel.edu (John Pat Corigliano)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Fixture List Algorithms?!
  5. Date: 27 Mar 1996 02:49:44 -0500
  6. Organization: University of Delaware
  7. Message-ID: <4jaruo$10l@strauss.udel.edu>
  8. References: <wegge.3y7u@hoa.ping.dk> <64_5625@tna.nullnet.fi>
  9. NNTP-Posting-Host: strauss.udel.edu
  10.  
  11. A simple sollution would be to create a generic schedule and then, at
  12. run-time, fill in the generic schedule with real teams' names.  This
  13. assignment would be random, so that you can create many different
  14. schedules from the generic one.
  15.  
  16. For example, suppose the generic schedule is:
  17.    Week 1 -  a vs b, c vs d
  18.    Week 2 -  a vs c, b vs d
  19.    Week 3 -  a vs d, b vs c
  20.  
  21. And if the teams are Team1, Team2, Team3, Team4, then for each new season,
  22. randomly assign a letter to a team:
  23.  
  24.   Season 1 - a = Team1, b = Team3, c = Team2, d = Team4
  25.   Season 2 - a = Team3, b = Team4, c = Team2, d = Team1
  26.  
  27. Of course, it is assumed that the number of teams is fixed.  Also, there is
  28. no guarantee that the same season will be created more than once (well, due
  29. to the finite number of teams, this is inevitable).
  30.  
  31. It may not be the most elegant approach, but it should work :P
  32.  
  33. Later,
  34. -- 
  35. John Corigliano                                  jcorig@strauss.udel.edu
  36. Computer and Information Science                  University of Delaware
  37. MoppSoft - http://www.del.net/users/mopp
  38.           "Never drive a car when you're dead."  - Tom Waits
  39.